
import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
import '@/styles/common.scss'
import 'element-plus/dist/index.css'
import { LazyLoadPlugin } from "@/directives/lazyLoad.js"
import { ComponentPlugin } from "@/directives/component.js";
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'


const app = createApp(App)

app.use(createPinia().use(piniaPluginPersistedstate))
app.use(router)
app.use(LazyLoadPlugin)
app.use(ComponentPlugin)

app.mount('#app')

